package com.uni.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.uni.common.entity.Admin;
import com.uni.common.entity.User;
import com.uni.common.util.PageBean;
import com.uni.dao.UserDao;

@Service
public class UserServiceImpl{

	@Autowired
	private UserDao userDao;
	
	public User findById(Long id) {
		return userDao.findById(id);
	}

	public List<User> findList(PageBean<User> pageBean) {
		return userDao.findList(pageBean);
	}

	public Integer countList(PageBean<User> pageBean) {
		return userDao.countList(pageBean);
	}


	public Admin findAdmin(String name, String password) {
		return userDao.findAdmin(name);
	}

	public int update(User user) {
		return userDao.update(user);
	}

	public int del(String[] a) {
		return userDao.del(a);
	}

}
